import 'package:flutter/material.dart';

class GridViewDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("gride view demo"),
          centerTitle: true,
        ),
        body: Center(
          child: GridView.count(
            crossAxisCount: 3,
            crossAxisSpacing: 30.0,
            padding: EdgeInsets.all(20.0),
            primary: false,
            children: [
              Container(
                  // color: Colors.green,
                  child: ElevatedButton(
                child: Text("button"),
                onPressed: null,
              )),
              TextField(),
              Text("0.2"),
              Text("1.0"),
              Text("1.1"),
              Text("1.2"),
              Text("2.0"),
              Text("2.1"),
              Text("2.2"),
              Text("3.0"),
              Text("3.1"),
              Text("3.2"),
            ],
          ),
        ));
  }
}
